import base64

key = 'VYVNfQSng'
screate = '2e14676016c911ec9d7800163e126199'
url = 'https://oauth.cleargrass.com/oauth2/token'
str_ba = key + ':' + screate
result = base64.b64encode(str_ba.encode('utf-8'))
Authorization = "Basic " + result.decode('utf-8')
print(result, Authorization)
a = {
    "access_token": "-_P9ImgXQR31R5S3aHYMQ78PbS-hZSlIc-RdvDylLeY.s6qFuI2ypNfFjF_kh9GSV6bKq4jlhHVRfoEQCc53gsI",
    "expires_in": 7199,
    "scope": "device_full_access",
    "token_type": "bearer"
}